package org.scauinfo.fpos.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Userpermission entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "userpermission", catalog = "db_fpos")
public class Userpermission implements java.io.Serializable {

	// Fields

	private Integer id;
	private String upermissionId;
	private String upermissionName;
	private String urules;

	// Constructors

	/** default constructor */
	public Userpermission() {
	}

	/** minimal constructor */
	public Userpermission(String upermissionId, String upermissionName) {
		this.upermissionId = upermissionId;
		this.upermissionName = upermissionName;
	}

	/** full constructor */
	public Userpermission(String upermissionId, String upermissionName,
			String urules) {
		this.upermissionId = upermissionId;
		this.upermissionName = upermissionName;
		this.urules = urules;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "upermission_id", nullable = false)
	public String getUpermissionId() {
		return this.upermissionId;
	}

	public void setUpermissionId(String upermissionId) {
		this.upermissionId = upermissionId;
	}

	@Column(name = "upermission_name", nullable = false)
	public String getUpermissionName() {
		return this.upermissionName;
	}

	public void setUpermissionName(String upermissionName) {
		this.upermissionName = upermissionName;
	}

	@Column(name = "urules")
	public String getUrules() {
		return this.urules;
	}

	public void setUrules(String urules) {
		this.urules = urules;
	}

}